namespace ASPNET.StarterKit.IssueTracker
{
    using Microsoft.VisualBasic.CompilerServices;
    using System;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    public class Header : UserControl
    {
        [AccessedThroughProperty("ctlpagetabs")]
        private PageTabs _ctlpagetabs;
        [AccessedThroughProperty("lnkLogOff")]
        private HyperLink _lnkLogOff;
        private object designerPlaceholderDeclaration;
        public string TabName;
        public string Title;

        public Header()
        {
            base.Load += new EventHandler(this.Page_Load);
            base.Init += new EventHandler(this.Page_Init);
        }

        [DebuggerStepThrough]
        private void InitializeComponent()
        {
        }

        private void Page_Init(object sender, EventArgs e)
        {
            this.InitializeComponent();
        }

        private void Page_Load(object sender, EventArgs e)
        {
            if (StringType.StrCmp(this.Context.User.Identity.AuthenticationType, "Forms", false) == 0)
            {
                this.lnkLogOff.Visible = true;
            }
            this.ctlpagetabs.CurrentTabName = this.TabName;
        }

        protected virtual PageTabs ctlpagetabs
        {
            get
            {
                return this._ctlpagetabs;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._ctlpagetabs != null)
                {
                }
                this._ctlpagetabs = value;
                if (this._ctlpagetabs != null)
                {
                }
            }
        }

        protected virtual HyperLink lnkLogOff
        {
            get
            {
                return this._lnkLogOff;
            }
            [MethodImpl(MethodImplOptions.Synchronized)]
            set
            {
                if (this._lnkLogOff != null)
                {
                }
                this._lnkLogOff = value;
                if (this._lnkLogOff != null)
                {
                }
            }
        }
    }
}

